package com.sais.manage.boot.building.dto;

import com.sais.manage.boot.building.entity.Room;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * 宿舍管理平台-宿舍楼保存DTO
 *
 * @author zwp
 * @date 2020/1/30
 */
@Data
@AllArgsConstructor
@Builder
public class RoomSaveDTO {

    private String ukId;
    private String majorId;
    private String code;
    private String name;
    private Integer count;
    private Integer status;
    private Integer sort;

    public Room convert() {
        Room room = new Room();
        BeanUtils.copyProperties(this, room);
        return room;
    }

}
